package cn.xiaomagege.platform.module.sys.entity;

public class QuartzTask extends DataEntity<QuartzTask> {
    private static final long serialVersionUID = 1L;
    
    /**
     * 智慧工地调度任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
    
    /**
     * 智慧工地调度任务名称
     */
    private String name;
    
    /**
     * 智慧工地调度任务表达式
     */
    private String cron;
    
    /**
     * 执行的类
     */
    private String targetBean;
    
    /**
     * 执行方法
     */
    private String targetMethod;
    
    /**
     * 执行参数
     */
    private String params;
    
    /**
     * 智慧工地调度任务状态
     */
    private Integer status;
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getCron() {
        return cron;
    }
    
    public void setCron(String cron) {
        this.cron = cron;
    }
    
    public String getTargetBean() {
        return targetBean;
    }
    
    public void setTargetBean(String targetBean) {
        this.targetBean = targetBean;
    }
    
    public String getTargetMethod() {
        return targetMethod;
    }
    
    public void setTargetMethod(String targetMethod) {
        this.targetMethod = targetMethod;
    }
    
    public String getParams() {
        return params;
    }
    
    public void setParams(String params) {
        this.params = params;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Override
    public String toString() {
        return "QuartzTask{" + ", name=" + name + ", cron=" + cron + ", targetBean=" + targetBean + ", targetMethod="
                + targetMethod + ", params=" + params + ", status=" + status + "}";
    }
}